package zheng;

public class 水仙 {
	public static void main(String[] args) {
		long a, b, c, d;
		for (a = 100; a < 1000; a++) {
			b = a / 100; // 确定百位
			c = a % 100 / 10;// 确定十位
			d = a % 100 % 10;// 确定个位

			if (a == b * b * b + c * c * c + d * d * d)
			{

				System.out.println(a);
			}

		}

	}
}
